package com.yanggeng.demo.beginnerguidedemo.widget

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.widget.TextView

class DispatchEventTextView(context: Context, attributeSet: AttributeSet): TextView(context, attributeSet) {

    override fun dispatchTouchEvent(event: MotionEvent?): Boolean {
        Log.e("TextView", "----------TextView dispatchTouchEvent-----------")
        return super.dispatchTouchEvent(event)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        Log.e("TextView", "----------TextView onTouchEvent-----------")
        return super.onTouchEvent(event)
    }
}